﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

namespace UI
{
    public class UILuckCircleTemplateTwelve : UILuckCircleTemplateEight
    {
        public GameObject pos8;
        public GameObject pos9;
        
        public GameObject actvie8;
        public GameObject active9;

        public GameObject pos10;
        public GameObject pos11;

        public GameObject actvie10;
        public GameObject active11;

        public override void Actived(List<bool> light)
        {
            base.Actived(light);
            actvie8.SetActive(light[GetIndex(8)]);
            active9.SetActive(light[GetIndex(9)]);
            actvie10.SetActive(light[GetIndex(10)]);
            active11.SetActive(light[GetIndex(11)]);
        }

        public override Transform GetPlaced(int index)
        {
            var tr = base.GetPlaced(index);
            if (tr != null)
            {
                return tr;
            }
            else
            {
                if (index == 8) return pos8.transform;
                if (index == 9) return pos9.transform;
                if (index == 10) return pos10.transform;
                if (index == 11) return pos11.transform;
            }

            return null;
        }
    }
}
